import {
  AuditStatus,
  PenaltyTypeEnum,
  RaceGroupStageTypeEnum,
  RaceStageTypeEnum,
  RaceStatusEnum,
  RaceSystemEnum,
  RaceTypeEnum,
  RankRuleEnum,
  RegisterStatus,
  SinglePeriodTypeEnum,
  TeamMemberRoleEnum,
} from "./enum";

// export const CompetitionGroupText: { [key in CompetitionGroupEnum]: string } = {
//   [CompetitionGroupEnum.ADULT]: '成人赛事',
//   [CompetitionGroupEnum.CHILD]: '青年赛事'
// }

export const RaceSystemEnumText: { [key in RaceSystemEnum]: string } = {
  [RaceSystemEnum.FIVE]: '五人制',
  [RaceSystemEnum.EIGHT]: '八人制',
  [RaceSystemEnum.ELEVEN]: '十一人制'
}

export const RaceTypeEnumText: { [key in RaceTypeEnum]: string } = {
  [RaceTypeEnum.LEAGUE]: '联赛',
  [RaceTypeEnum.CUP]: '杯赛'
}

export const RaceStatusEnumText: { [key in RaceStatusEnum]: string } = {
  [RaceStatusEnum.PENDING]: '待发布',
  [RaceStatusEnum.PUBLISHED]: '已发布',
  [RaceStatusEnum.REGISTER]: '报名中',
  [RaceStatusEnum.RACE]: '比赛中',
  [RaceStatusEnum.FINISH]: '已结束'
}

export const TeamNumbersText: { [key in TeamMemberRoleEnum]: string } = {
  [TeamMemberRoleEnum.PLAYER]: '球员',
  [TeamMemberRoleEnum.CAPTAIN]: '领队',
  [TeamMemberRoleEnum.HEAD_COACH]: '主教练',
  [TeamMemberRoleEnum.ASSISTANT_COACH]: '助理教练',
  [TeamMemberRoleEnum.TEAM_AFFAIRS]: '队务',
  [TeamMemberRoleEnum.TEAM_DOCTOR]: '队医',
  [TeamMemberRoleEnum.TRANSLATOR]: '翻译',
  [TeamMemberRoleEnum.TECHNICAL_ANALYST]: '技术分析员',
}

export const PenaltyTypeText: { [key in PenaltyTypeEnum]: string } = {
  [PenaltyTypeEnum.YELLOW]: '黄牌',
  [PenaltyTypeEnum.RED]: '红牌'
}

export const SinglePeriodTypeText: { [key in SinglePeriodTypeEnum]: string } = {
  [SinglePeriodTypeEnum.REGULAR_TIME]: '常规时间',
  [SinglePeriodTypeEnum.PENALTY_KICK]: '点球决胜'
}

export const RankRuleText: { [key in RankRuleEnum]: string } = {
  [RankRuleEnum.TEAM_SCORES]: '球队积分',
  [RankRuleEnum.TOTAL_GOAL_DIFFERENCE]: '总净胜球数量',
  [RankRuleEnum.TOTAL_GOAL]: '总进球数量',
  [RankRuleEnum.INTER_OUTCOME]: '相互之间胜负关系（同积分）',
  [RankRuleEnum.INTER_TOTAL_GOAL_DIFFERENCE]: '相互之间净胜球数量',
  [RankRuleEnum.INTER_TOTAL_GOAL]: '相互之间进球数量',
  [RankRuleEnum.RED_COUNT]: '红牌数',
  [RankRuleEnum.YELLOW_COUNT]: '黄牌数',
}

export const RegisterStatusText: { [key in RegisterStatus]: string } = {
  [RegisterStatus.PENDING]: "报名中",
  [RegisterStatus.COMPLETED]: '已完成',
}


export const AuditStatusText: { [key in AuditStatus]: {
  type: string,
  text: string
} } = {
  [AuditStatus.PENDING]: {
    type: '',
    text: '审核中'
  },
  [AuditStatus.COMPLETED]: {
    type: 'success',
    text: '审核通过'
  },
  [AuditStatus.FAILURE]: {
    type: 'warning',
    text: '已驳回'
  }
}

export const RaceStageGroupTypeText: { [key in RaceGroupStageTypeEnum]: string } = {
  [RaceGroupStageTypeEnum.SIGNLE_CYCLE]: "单循环",
  [RaceGroupStageTypeEnum.DOUBLE_CYCLE]: '双循环',
}

export const RaceStageTypeText: { [key in RaceStageTypeEnum]: string } = {
  [RaceStageTypeEnum.GROUP]: "小组赛",
  [RaceStageTypeEnum.QUALIFIER]: '排位赛',
}
